# $Id$
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgbase=libreoffice-still-i18n

pkgver=6.0.6
pkgrel=1
_rcver=${pkgver}.2
#_oodlver=${pkgver}.0.beta1
_oodlver=${pkgver}

arch=('any')
url="http://www.documentfoundation.org"
license=('LGPL')

#https://download.documentfoundation.org/mirrors/all.html

_url="https://download.documentfoundation.org/libreoffice/stable"
#_url="https://download.documentfoundation.org/libreoffice/testing"
#_url="https://dev-builds.libreoffice.org/pre-releases"


#_url+="/${pkgver}-rc2/rpm/x86_64"
#_url+="/${pkgver}/rpm/x86_64"
_url+="/${pkgver}/rpm/x86_64"
#_url+="/rpm/x86_64"

_languages=(
  'af            "Afrikaans"               0'
  'am            "Amharic"                 1'
  'ar            "Arabic"                  1'
  'as            "Assamese (India)"        0'
  'ast           "Asturianu"               1'
  'be            "Belarusian"              0'
  'bg            "Bulgarian"               1'
  'bn            "Bengali"                 1'
  'bn-IN         "Bengali (India)"         1'
  'bo            "Tibetan"                 1'
  'br            "Breton"                  0'
  'brx           "Bodo"                    0'
  'bs            "Bosnian"                 1'
  'ca            "Catalan"                 1'
  'ca-valencia   "Catalan (Valencia)"      1'
  'cs            "Czech"                   1'
  'cy            "Welsh"                   0'
  'da            "Danish"                  1'
  'de            "German"                  1'
  'dgo           "Dogri"                   0'
  'dz            "Dzongkha"                1'
  'el            "Greek"                   1'
  'en-GB         "English (GB)"            1'
  'en-ZA         "English (ZA)"            1'
  'eo            "Esperanto"               1'
  'es            "Spanish"                 1'
  'et            "Estonian"                1'
  'eu            "Basque"                  1'
  'fa            "Persian"                 0'
  'fi            "Finnish"                 1'
  'fr            "French"                  1'
  'ga            "Irish"                   0'
  'gd            "Gaelic (Scottish)"       0'
  'gl            "Galician"                1'
  'gu            "Gujarati"                1'
  'he            "Hebrew"                  1'
  'hi            "Hindi"                   1'
  'hr            "Croatian"                1'
  'hu            "Hungarian"               1'
  'id            "Indonesian"              1'
  'is            "Icelandic"               1'
  'it            "Italian"                 1'
  'ja            "Japanese"                1'
  'ka            "Georgian"                1'
  'kk            "Kazakh"                  0'
  'km            "Khmer (Cambodia)"        1'
  'kmr-Latn      "Kurdish"                 0'
  'kn            "Kannada"                 0'
  'ko            "Korean"                  1'
  'kok           "Konkani"                 0'
  'ks            "Kashmiri"                0'
  'lb            "Luxembourgish"           0'
  'lo            "Lao"                     1'
  'lt            "Lithuanian"              1'
  'lv            "Latvian"                 1'
  'mai           "Maithili"                0'
  'mk            "Macedonian"              1'
  'ml            "Malayalam"               0'
  'mn            "Mongolian"               0'
  'mni           "Manipuri"                0'
  'mr            "Marathi"                 0'
  'my            "Burmese"                 0'
  'nb            "Norwegian Bokmal"        1'
  'ne            "Nepali"                  1'
  'nl            "Dutch"                   1'
  'nn            "Norwegian Nynorsk"       1'
  'nr            "Ndebele (South)"         0'
  'nso           "Northern Sotho"          0'
  'oc            "Occitan"                 0'
  'om            "Oromo"                   1'
  'or            "Oriya"                   0'
  'pa-IN         "Punjabi (India)"         0'
  'pl            "Polish"                  1'
  'pt            "Portuguese"              1'
  'pt-BR         "Portuguese (Brasil)"     1'
  'ro            "Romanian"                1'
  'ru            "Russian"                 1'
  'rw            "Kinyarwanda"             0'
  'sa-IN         "Sanskrit (India)"        0'
  'sat           "Santali"                 0'
  'sd            "Sindhi"                  0'
  'si            "Singhalese"              1'
  'sid           "Sidama"                  1'
  'sk            "Slovak"                  1'
  'sl            "Slovenian"               1'
  'sq            "Albanien"                1'
  'sr            "Serbian"                 0'
  'sr-Latn       "Serbian (Latin)"         0'
  'ss            "Swati"                   0'
  'st            "Southern Sotho"          0'
  'sv            "Swedish"                 1'
  'sw-TZ         "Swahili (Tanzania)"      0'
  'ta            "Tamil"                   1'
  'te            "Telugu"                  0'
  'tg            "Tajik"                   1'
  'th            "Thai"                    0'
  'tn            "Tswana"                  0'
  'tr            "Turkish"                 1'
  'ts            "Tsonga"                  0'
  'tt            "Tatar"                   0'
  'ug            "Uighur"                  1'
  'uk            "Ukrainian"               1'
  'uz            "Uzbek"                   0'
  've            "Venda"                   0'
  'vi            "Vietnamese"              1'
  'xh            "Xhosa"                   0'
  'zh-CN         "Chinese (simplified)"    1'
  'zh-TW         "Chinese (traditional)"   1'
  'zu            "Zulu"                    0'
)
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
sha256sums=('177f0a8b7311da7bbfcc1f1857a9e15abd32958f904cfb558f032f23e42c0625'
            'SKIP'
            'd8760be1fe9d1d720d6185fbea9b15c33ead5e7262eda6564f8137c6ac04caab'
            'SKIP'
            '379d14840ac0c750b9f71438084561725b9ba88108e554fe65f85a6e00a91886'
            'SKIP'
            'b04348986d738f0543d1599348fc0303e3641e9a580975a2a2b253f286bb7b16'
            'SKIP'
            '6281bcad6a54e78093896da5251483930ab4e5f27882e33a88c3d18591db6655'
            'SKIP'
            '534ca00d93e1b4adc12167d84d9cc455a88e6290f1f31e483c027a6e3e261508'
            'SKIP'
            '0c25662f0287b44935f850409c8c7838e308738232d37b765fe1b96032ec9b03'
            'SKIP'
            'dfa990634abce9f204f71a37a6cf524c9949ae6bd12ec199f69903af1aea7642'
            'SKIP'
            '5ef1d14d9d37f7e5a42587d7aa3828136e1c29227e48e13454d1c3b5ce20767e'
            'SKIP'
            'b27a45c927b97b4b562baa2de1c2238203dba5f7aa56189754c7146e6a33824b'
            'SKIP'
            '8c37cb05e5d3a19410e1242482d17010a9c46e8e9110c3d42503e9e96f79f86a'
            'SKIP'
            '9b4ffbe6950af5b0522ac656a82f861d7f76f13acc3f1cc292fdc70c7c5869df'
            'SKIP'
            'c8028c4e3300fb200441f3a188a0c56090b25c6dca62f57e1bd0637597cf229a'
            'SKIP'
            'd8bac334779fcdbaef0beb93f072c3af7bf2117f685703bc85f9f0086d153dbd'
            'SKIP'
            '9ba232aa35da47101087c6f3b525dd56f2e6908c5ce8511b2da4605e7f1169bf'
            'SKIP'
            'd8a0b521a72d8c66117f732a2dd9a4ef208c19c66c1ddb8cc49ae6940b1fa440'
            'SKIP'
            '1b4e54d029594516811610910771ff5fa536e60259694924644a11f9ff72c863'
            'SKIP'
            '0fdbe182b13d8958e2a5ff5f55c957f7111df12f417a24a9de780cb203eb440d'
            'SKIP'
            '0e684098cdf89a4edd7493d08490f1c15c0f5c4b9656bf6a2adf8b65afdaf924'
            'SKIP'
            '79735066b9e6e57b318b5f850b408b0e99d334c56551a42187c5d4ab0861d649'
            'SKIP'
            '79768fb32e6e4994c3b4b2f85309f30c208a9d9fb94f0b6c50584ac956d167df'
            'SKIP'
            'fe8caf79f2c202151af0926c7274fc952f3ad2173bba690dfc9b34fb70d185a9'
            'SKIP'
            '9939d64f44b160f4d9a195de483ee96345ce407b831a7fcfc946ea649216e575'
            'SKIP'
            'ab43aac0fa69012708a6d7118dc1496a3aa83d79f66d7802e1a68e6e76d6bd1b'
            'SKIP'
            '2084d16bfbf58b0fc0ccaaf0da0cdd32e316a6f4882d99b50b660bbc9499ce3a'
            'SKIP'
            '3755ec2772daf1a3949442f65b3a63f49429ceb731b569ab0fef93419795b69c'
            'SKIP'
            'fecf08845d66b3169ce68bf969304014bb551be3be73a669b0234a32a2cef76d'
            'SKIP'
            'd940157ec7492aaa9cefc9000871c20c7218694a72014c5fc32f00cb0560007f'
            'SKIP'
            '502a082d9562df3a097a7c82060f52904f8c3e32ba739b25f2ea9abc10551fde'
            'SKIP'
            '7a6258860d7f1a856b895a03439a83a8e88ed10b1abee6f5550c0f2eba4e08b1'
            'SKIP'
            'a6c23f3ae30d289b0dc2e82a8f94ef5938f6b504cf724235736efe58411dd39c'
            'SKIP'
            '5d31a3c5a259296417850a3d30c702ee7d875116034db69a333748f627c1e282'
            'SKIP'
            'ce22e0d09e4d9ef7be39e34c329cd181f199d1047c3edb2a7b40307c75af16f4'
            'SKIP'
            'c1d0aa2b2f9e1f44e4f109ffc1253155e522f86256fff6a30905ad15b99f8046'
            'SKIP'
            '34fda31a5654b3369c4b2f04bcbe7ed6a97c15818b407d659548a2a7c86065ac'
            'SKIP'
            'a8681e3f27b6856d31b611a95bd469179d6496f1dd3c98fef6174d44d102a285'
            'SKIP'
            '071773d23dc5bc2dd744a88b67d7345bc2178157dbbb792a8626b433818e0ef7'
            'SKIP'
            '9f450736c44af64d7ab9849e459ad86118eb96188547d76fbe9289e32b0ef804'
            'SKIP'
            '82a7d810459bbd142f36565581f9183dd51f9b5c42650bc2894cbb3301fe6712'
            'SKIP'
            'ec6934ca0a02cec86f026d9e100b1f3b90f03fd7a44e9bb8140041fea67968fa'
            'SKIP'
            '56d4f3859b32dcd6b4613aba9b263054aca5267d9373b26b2dc020ff3d6deee8'
            'SKIP'
            '2d6c0bf4af8a8adf4f047292846c9313c6fcc5d138101f99733a950d64e52018'
            'SKIP'
            '5c9f4fd4ccaef917caea80f43535edc5429a28fc8fb820aa311a3b7a1dfdacc8'
            'SKIP'
            'a159f85ba76648097732465b31d59bd8a6e10db42b2fe289efd6977988410d04'
            'SKIP'
            '353a80b29f5396ae11e7e32549b9ca4e7c77a976da139760860076ad5556f9cd'
            'SKIP'
            'c036c8c5b8a887ee7a14bbf7b5ce78eb31e2fcfc4f759573943671bd4d2b2a78'
            'SKIP'
            'dc40e1ddf063ba817693aa901f292d53393006eef86d600a4b340afd4c8869d5'
            'SKIP'
            'c46385d48b9058fedcd404be3d82c21afb6b8f8d40d7eeada3bbbc065f06b6b5'
            'SKIP'
            '56b290a47e5c4ba6350460029ec314ee2170009f8813c48efedc32a7e26a8425'
            'SKIP'
            '7cf4f04d2c1289bee51e3184781e4de10209ee84907650a29ab3e7b58f190d04'
            'SKIP'
            '6028fdb20aa187ca7d30996c3197c53f641e6962cc256fa7c4fdbd703a6b0787'
            'SKIP'
            '5f1d4b5c09f5c73d298ec00699d8c506889029f7def98f5edf284a55ec9c33db'
            'SKIP'
            '4f8c766b7183ce0878c7594d3e8eb3374eff06fa1c4f5710e35f1165092fd580'
            'SKIP'
            '3b790f405937dfb002728df29f50ced23f53917e04c7ba733621e62bd4d3170b'
            'SKIP'
            'eadd991d5672edab5f03ee41a08beeb1666d3460f1aaabc7cfe31548e59db6cb'
            'SKIP'
            '2c47932934b5b8fe3c41c6368aa21a52f61b3eb114c790a57ea448d803f17b55'
            'SKIP'
            'faf79929d700ae3aa899036db06210bd39d713cf9683818c107f36bccef4b1ee'
            'SKIP'
            '7573745ee494842edf4b924582ec7b479c8bf48a668067940f680001d4795e9d'
            'SKIP'
            'c2f484b9375dc990f61ce0b22c2021fd30c699cfe93454f9dc239dd6d35e70ee'
            'SKIP'
            'dda4c41fb9ec00c1d03516bf955c40b2befe23a3050a531fcccbd5bdb16d979f'
            'SKIP'
            '54724fd5de54fb80022d6acf14c24d55c8eb7dd5a8fedae4b13cf0f5bb966020'
            'SKIP'
            '4aaaa0fabda0a6c77f2f7bfc373f6e9cd0263121cf1442eae8f340c0c1f734f9'
            'SKIP'
            'fa8b6171fbed1dd39c8d09807b64efc3a6e1eeec1350facad1e3bb1374b3acf1'
            'SKIP'
            'eea90a87675552cc7f0c23a23cedaaaff71acca5cfa073c9ee2eaf76da391d75'
            'SKIP'
            'b6839e2f01a78c43053e8a131d8e12d8c39ba285433b0a315cd2898d079b52fa'
            'SKIP'
            '058d1ea0707d3da545c320fc062949330776e6e9ddc5b8e6055fef6ed2b7a18e'
            'SKIP'
            'd729966d94d5ce0555f93df69649c5e2e06fa4834f81668632ea9102ca9074eb'
            'SKIP'
            'a88e7cfa5994e65c441ba8dc40b45920cb15aae86bc41142492ac7bf2efee3ca'
            'SKIP'
            'de23c82c00a764d3f8d1b28a6d8745f6407c85a154c0885ff5d9dc492b532750'
            'SKIP'
            '09873e9ed33aa2491d463869e4d8b507c2defdf768a93c373dcd61ff2644df88'
            'SKIP'
            '731efc2624b1c79ece1035c74f9e4d36b0c131c5434977dce2f09b8f25f60599'
            'SKIP'
            'bbef8b873df7c427175e2671b72528bbd3f685839637226926560ea114ed3e5d'
            'SKIP'
            '3c4433f2d4d2439b705af541bfa9a52cce0f13f582930883905ea33988d1a7be'
            'SKIP'
            '6ab12dce79d98e1d205b3cedb97d057fec7cfb658398beaebaf82d83756dbeaa'
            'SKIP'
            '687cbff3bed62fbc9af9fca65a8e6095972fae7c58b05689f6e17a34c1c5988b'
            'SKIP'
            'dd0f4cac77c383fb0a1ea0ac8c90af42617947677a43bad393d13214b9e783a8'
            'SKIP'
            '15a7efcf1b732b4621b792e893cb3f60bbe764df386a823a32d5dfaacf0337cc'
            'SKIP'
            '3b049dcde3a9b7ce606e83b26b57a6f784080b5d13a9fb5dd16314feb77332a7'
            'SKIP'
            '2debb7d6d933d56ea5f07198c0752cd77d19db32cc575994fc8a18cb887c6150'
            'SKIP'
            'ecf6f0d62d2a455cd8efeebf83608d0ce13098ea24b299ed600fb9e0a84762a7'
            'SKIP'
            'bb84d586951eef98f2ce24148107e224601376d48385101143d8fee30408651a'
            'SKIP'
            'c12f054130fb45ff5182875de37ff51a7f89f12a536462b5d1411d249b8b6181'
            'SKIP'
            'd040ed3462b8dc3ed644893cb9fb19bf8aa7fcf6df16fb8a62235619f080722c'
            'SKIP'
            'e36f0120ce9b2a58798f29a6b3f2571313efbcf5b1694b003855f78179b1e343'
            'SKIP'
            '6fad00965482b9297613add6fec56207bcd989abd03a18d69b9a9b5f57ffdb32'
            'SKIP'
            '17ef5903d4bcb5b4907dd92ba9b1dd3f96234c07191e3985313f99f00be7dd34'
            'SKIP'
            '049edb7d5faf8bb47e7b78661ee14fe3a858a9fa272d92adf1cbc10b67a37a0a'
            'SKIP'
            '90627bf9f7df0fc0e04d792ad7b36ecafc2ad12a68ff1842f3fa69598993e2d6'
            'SKIP'
            '4d6c0e434edb60ea8dbf101e4a7c72c594f7c4d3d1556c19e4f958afe21f3e83'
            'SKIP'
            'c21474994451369600428cf702565bc488ee0b7c87961c7723e8ea94dfadc9cd'
            'SKIP'
            '6bd319ef2680c240e639f4483d14fdd0db1ad72d5d532f5f05bf5ccafd409c62'
            'SKIP'
            '6d21eab9227c5ea6cd863cbf74245d09421351a111fc58e4d64ca199d05a0eda'
            'SKIP'
            '9df8c43ad78b829e707d2ffa346a73a63f1e624e12831cd772908e2cfa3a1135'
            'SKIP'
            'e5972d9101682912ba274c401cb97491c91834d2705d23982cf212875bea6cc1'
            'SKIP'
            '1e2b6f77b05a2475fa5e336e77f96e4af3514de91b78d2268c05a02e00e46dd1'
            'SKIP'
            '545358779c91127dffed0747673aca2aa9ebbb2d882e127cdafba29a6c252dfb'
            'SKIP'
            'b0f636e5ec7260d16172a048042b28ec58b39ef085be72434cd3fee7702d6b4c'
            'SKIP'
            '6285de540328b13ed6f8b8b199d566155e49582efbdb9141072f03e2085ed586'
            'SKIP'
            '62caac8df465c11a4cc1137e4d530c934d56bcaa98ff8ec530b960d4f427e16a'
            'SKIP'
            'cff6f46a0b0f237d326304913032378df85e79b1d6ee09e8d2e5bf083f6bd7f3'
            'SKIP'
            'a2f4634330253f39f14b3a9afaff246f68ea8c86fff1173660e60693f2826b8d'
            'SKIP'
            '214f51be1e1c3b220557ebb5bdf3bbea140ca3b68285a4e29f66ea26d5143599'
            'SKIP'
            'c7086ab2c2828c7a152526ff7b8a92e266fcb59e5e08095faaac3bee2c1871be'
            'SKIP'
            '53c5b06cf2c1da5e54ff9a49fc0b6a09e73811e7fb40d3d068647a49d7c5061f'
            'SKIP'
            '2537bd2bb8392dbae07cb8a94a8c945b2886f50d75b1824701a056aeafe5b12f'
            'SKIP'
            'a901a0859bf88deb20a0a52c6132ebbf2077fd114060fff7283783ec3d05a573'
            'SKIP'
            '91d18c4f75d5cc0e02100a6742a5688dab1b7950c36a4ef0c665575c47dc72eb'
            'SKIP'
            'cb3fd74e27d833436029b4c1bbf7912bc337ca4ce715072a4012634bc1f57556'
            'SKIP'
            '311740a86c9cf83739c5a1a99ff2ddd3a95bef1a6c06b39b796f779cb2db22a4'
            'SKIP'
            '2ef17aa4d615a1154cfba9afe9ddf80cc1df7e5ca915359d9c8c134425b22d4b'
            'SKIP'
            '582b2848252b3936293dd856fe95c49589ff4f45ff51f4211412c10fd070fb80'
            'SKIP'
            '8697c7e93c97e9683e9156ec0c0cc629a0fcf10f7b24b713ea24d85001a62cb9'
            'SKIP'
            '61d251093614459d70805c138529137cac36741d04045f0ae2753842912e3460'
            'SKIP'
            'be4750a0a76c29dbf49132dff02ce41f6176bd57a6418bd1bbff1e6cfca87c1f'
            'SKIP'
            'f1db59be100412aa34cc339787aec716a90b6421df6b5c794a5a80e90b91f4e0'
            'SKIP'
            '49ff5a6432ee9b62ed693ee161fd3ea37f53da1f05d17b816b36f4446c277a8d'
            'SKIP'
            '65a38d343a95f3e0ff9fb7c718839d550f9b890291e8c075fb3e74ebc5521495'
            'SKIP'
            '6c1106c9f843f0586bae545348b7a1fb07efe084dbd2a632da968243d00bf75b'
            'SKIP'
            '9a7978a68d6d44aec2a3fbf4b9a728c89948a67269bfbc875ad8a4512de76f19'
            'SKIP'
            '5978ae4290f7f6dbdf37e617c259e357ab49d127cded9ca469ffef46ce859cc7'
            'SKIP'
            'd8fda69215fa231b9e9b035a3f415b0f64f7e567bd1e6be7150e68b61a603c97'
            'SKIP'
            '5366ef154c083be76b4eca7658c10497b1a2248da104646245e0fd2061025ea6'
            'SKIP'
            '24e1856f7d865b3659ea5ebd38aba98905ec909e5907eec949bc90052ab636f7'
            'SKIP'
            '77aa785790cba87dbd4af0a9fa731c478a06290bf9f4f76b0a40ba377a7660c0'
            'SKIP'
            '062e70a8e106eb3021fa69c57f48ccd4cc9d3aa7b56086d3a9ac15d6df9ac2eb'
            'SKIP'
            '3f8dca48c9e844c016bd344cbf7a3c6a03724ea4a10e08ad53e1668b1fc2b5a2'
            'SKIP'
            '3ef85ff4c4590109b5d26b32b3613f02576ff2c301dec289fd346805834ade6a'
            'SKIP'
            '5eb1fe64230e69f2f73eb8eaf623bfbd1d845247a497c60b339da7d7b986cad0'
            'SKIP'
            'b8c20f59a95c8735b7d280d3766a87635de4f2e1effc81e30bfa4a3e8223f8c1'
            'SKIP'
            '4a901c6c9c98b5f4a59f92b99272eebc989a5f9acc88f9648a5367b7beeee825'
            'SKIP'
            '752725fb792f24bb390bc0cb4a95b5107df811e6f87fc6f675c42af3e4844571'
            'SKIP'
            '0fa9e1bec3f55186889a152e5afced715e5c9ee7175e3babe841db75487f461b'
            'SKIP'
            'bdb84436addef3224fb3c62e6400d381c4e7163b9c2cde865d6e61ff8be9e735'
            'SKIP'
            '655465f81677cc55621d90c97f00d65c5d6721fa982281bf2eafdd7a65c04ca4'
            'SKIP'
            '102f991d9ba7ca8e269fa39f68d0b445ee3b701cb29f9d594d5b3d9c13ce6f1a'
            'SKIP'
            '430bd879ab8026609de2035c98148666b43bbf512d1c74837a74e65c52105db1'
            'SKIP'
            'f9ff022a028426a0fb673497639e671b9c0da87c0d0d6cfe665bbae235098bd1'
            'SKIP'
            'b89db1f4c4be24b4887f7a1e6efe9f049cfd0ee23ee77a2c2ddef71ece509296'
            'SKIP'
            '150dd8050d309cef7f72ce069be2314201f80f8f115201c964679d17b2706797'
            'SKIP'
            'c084c486aaf019a8d0b5870515fc1b5aebef1bcc2fa338fa75b824a33a340f69'
            'SKIP'
            '2b06fa5e866bf57eb12289db76dd85f36e7fc2a0539632c299469fca76b27373'
            'SKIP'
            'fe0a318fa7771d7ab4a82ea912ff1c563bc834abdcb9f64fc94020f39545600d'
            'SKIP'
            'e33d0075276fbeb5dfddc0f6f58f2a007bd1b2dda5a057ef4026b0896090266a'
            'SKIP'
            'a3a8dc72b008e7c6c0781ab60a9134548375efa7e4c1a913ce5564168d610292'
            'SKIP'
            '79cef77ebafcac333a315ac93e214909c18831756bc208763fa8f0419653831f'
            'SKIP'
            '4a91237706c9c2a125213965e8da17a4b9ebc86d040aadb027ea7f6c25ab4146'
            'SKIP'
            'be28cf5486344950533e0f9807baa96823df34dc2bceacf64420cf9985c5dbcd'
            'SKIP'
            'a4305bcaa46fb69708ec50cb8c668871d2b7cbd3a8b29b1f15c9533c7560e629'
            'SKIP'
            'ddd613a49f41f0fdefea99b66fc336d4b7091f90464c9690b9aa405d6aef28a9'
            'SKIP'
            '53289437910fddf6f6eedcae56f1e0a912ee8bf25bfc0cdf654ddd659d53ac59'
            'SKIP'
            '3bbbf0ed7b3ad7a77baf297f9a498ee0e9df7bc3cea0e788556452794e2e31b1'
            'SKIP'
            '44809018879cd590bce33b9b0f99058878f70c66f624cde839d2e664cc24c50f'
            'SKIP'
            '3975588341c994821ffd5086a0e8abc3cbbf2d16780b244042188900b96df5aa'
            'SKIP'
            '6754874a0fb035530a05f51f609cb8e82e776f5fbd9290158bfae4bb10586aa6'
            'SKIP'
            'ce32c7fa1e2386e4b2a506513c34e653380c5a4617d5ed6dbd4b862e85b45826'
            'SKIP'
            '9e1d91326f243fba9c8f742502b1109bbbb6f629a75d5fcd500e3046d1cee18a'
            'SKIP'
            '082c824fea42bf3402266432b6fb11b3c42934da3555cd894fed9b95e19df2d0'
            'SKIP'
            '1dfebc986b145c40b78a78ca0840b192535996afdb64f706c46180e68dd68557'
            'SKIP'
            '3df23dfacdaa3318d70f1d86313b3a5849208cb66c626a13c15919131e3ef0c4'
            'SKIP'
            '3e4ef2a84d2e26e51b5192466624aa745229d50bcf8bae4b08fe7b286592fdbd'
            'SKIP'
            'ad81855707a71f2df38754b1cfb475a9b539eaf1b599ce100a97a679ef5180cf'
            'SKIP'
            '19e4caaec55568abcf403ca03411f365e2ced790f30687edac2eb97cc35ca594'
            'SKIP'
            '05bdfb331494ded797e888b9d0c7b2b6b0e6e14ed15db6f3177230426b2930bf'
            'SKIP'
            '00b9a3bdb29e498481a99b5177ea00daf5af6cedd56e05f28f9bd3fc37032873'
            'SKIP'
            '8b5fb09d37802ac4e8a0cd00bd0f671788c8fbf2d52f65c5164c89e858925876'
            'SKIP'
            '73bcbecf4c7622af525788189d73f4ef87ea8b9cdd9a6556b286fd4309616df2'
            'SKIP'
            'a90e442c00426c97c07383835c65ef89596f78e8309640b1676faa7a363ba96e'
            'SKIP'
            'be46120888609d19fa61f852336f229d6dc5bb711143d43b815a966024efc393'
            'SKIP'
            'a7845a2f0e06d99d8c97dd425fcd7c9f478f16194ddc2184e572c0b584eb98e5'
            'SKIP'
            '1d9f8120fd720a9f9792f0c9b9334b5e3b7bce71fa674f924d33be7e87042860'
            'SKIP'
            'f5ccd5e814d3d3dfc7f4fc0aee92779ba2713b020b23ef21bc0655d758a7b800'
            'SKIP'
            'ea2cad44ff82f970405422d15f83e56bf6ec14cc40675e92744880d634f3eb69'
            'SKIP'
            '2f8dfef3cfa757b407ed5c3811403b00c9c3d255beaaf72b894209f7d49066fa'
            'SKIP')

prepare() {
  for _lang in "${_languages[@]}"; do
    declare -a "_langa=($_lang)"
    _locale="${_langa[0]}"
    _helppack="${_langa[2]}"

    echo ${_locale} " unpacking..."
    cd "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_${_locale}/RPMS

    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf *-dict-*.rpm || /bin/true

    for j in *.rpm
      do bsdtar -x -f $j
    done

    # the helppack rpm goes also into the langpack dir
    if (( $_helppack )); then
      bsdtar -x -f "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_helppack_${_locale}/RPMS/*.rpm
    fi
  done
}

_package() {
  pkgdesc="$2 language pack for LibreOffice still"
  depends=('libreoffice-still')
  provides=("libreoffice-$1")
  conflicts=("libreoffice-$1")
  if [[ $1 != ${1,,} ]]; then
    replaces=(libreoffice-still-$1)
  fi

  cd "$srcdir"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_$1/RPMS
  mkdir -p "$pkgdir"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
  chown root:root -R "$pkgdir"/usr/lib/libreoffice
}

for _lang in "${_languages[@]}"; do
  declare -a "_langa=($_lang)"
  _locale="${_langa[0]}"
  _helppack="${_langa[2]}"
  _pkgname=libreoffice-still-${_locale,,}

  pkgname+=($_pkgname)
  source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_langpack_${_locale}.tar.gz{,.asc})

  if (( $_helppack )); then
    source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_helppack_${_locale}.tar.gz{,.asc})
  fi

  eval "package_${_pkgname}() {
    _package $_lang
  }"
done
